<%@ page language="java" import="java.util.*" import="java.sql.*" pageEncoding="UTF-8"%>
<jsp:useBean id="pos_plates" scope="page" class="software.Pos_plates"/>
<%
	String plates =request.getParameter("plates");
	int id=0;
	if(plates == null)
	response.sendRedirect("main.jsp");
	else
	try{
		id=Integer.parseInt(plates);
	}catch(Exception e){
		response.sendRedirect("error.jsp");
	}
	pos_plates.Pla_Read(id); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>软件开发交流平台</title>
<link href="../css/index.css" rel="stylesheet" type="text/css" />
	</head>
  <body>
<jsp:include page="head.jsp" />
<div id="contianer">
<div id="left"><img src="../images/post/post_bj1.jpg" width="164" height="500" /></div>
    <div id="center">
        <div><img src="../images/index/index_rt.jpg" width="695" height="25" border="0" usemap="#Map_Postq" />
          <map name="Map_Postq" id="Map_Postq">
            <area shape="rect" coords="606,0,683,26" href="ft.jsp" />
          </map>
        </div>
      <div style="width:695px;">
            <div></div>
            <div></div>
      </div>
      <div>
        <table id="table1">
          <tr>
            <td width="75" class="a"><%=pos_plates.getNam_Plates() %></td>
            <td>发帖数/点击量</td>
            <td width="35">&nbsp;</td>
            <td><%=pos_plates.getNum_Plates() %>/<%=pos_plates.getSumClicks_Plate() %></td>
          </tr>
         <%
    int k=pos_plates.getNum_Plates();
    for(int i=0;i<k;i++)
    {
    	pos_plates.getPost();
     %>
       </table>
         <table width="693" id="table4" background="/ceshi/images/index/index_kj_row.jpg">
          <tr>
            <td width="55" rowspan="3" align="center" valign="middle" class="b"><%=i+1 %></td>
            <td width="302" class="b" style="text-align:center"><a href="post.jsp?id=<%=pos_plates.getID_Post()%>"><%=pos_plates.getTitle() %></a></td>
            <td width="143" rowspan="3" class="c"><%out.print(pos_plates.getNum_Reply()+" / "+pos_plates.getNum_Clicks()); %></td>
            <td width="173" rowspan="3" class="c"><%=pos_plates.getNam_Use_Last() %></td>
          </tr>
          <tr>
            <td class="b"><%=pos_plates.getNam_User() %></td>
          </tr>
        </table>
       
    <%
    } %>
      </div>
  </div>
      <div id="right"><img src="../images/post/post_bj2.jpg" width="163" height="500" /></div>
      <div style="clear:both;"></div>
</div>
 	<jsp:include page="footer.jsp" />
  </body>
</html>
